package com.ruoyi.web.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel("用户留言VO")
public class UserMessageVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    private Long baseId;

    @ApiModelProperty("留言内容")
    private String content;

    @ApiModelProperty("访问码")
    private String accessCode;

    @ApiModelProperty("留言人")
    private String accessUserName;

    @ApiModelProperty("信息来源")
    private String source;

    @ApiModelProperty("摄像头ID")
    private Long cameraId;

    @ApiModelProperty("用户ID")
    private Long userId;

    /**
     * '1'访问码，'2'系统用户
     */
    @ApiModelProperty("留言人类型")
    private String type;

    @ApiModelProperty("来源名称")
    private String sourceName;

    @ApiModelProperty("留言时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createTime;
}
